home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / u_man / cat3 / Tcl / incr.z / incr
Encoding:
Text File  |  2002-10-03  |  1.2 KB  |  67 lines

  1.  
  2.  
  3.  
  4. iiiinnnnccccrrrr((((3333TTTTccccllll))))                                                          iiiinnnnccccrrrr((((3333TTTTccccllll))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      incr - Increment the value of a variable
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      iiiinnnnccccrrrr _v_a_r_N_a_m_e ?_i_n_c_r_e_m_e_n_t?
  13.  
  14.  
  15. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  16.      Increments the value stored in the variable whose name is _v_a_r_N_a_m_e.  The
  17.      value of the variable must be an integer.  If _i_n_c_r_e_m_e_n_t is supplied then
  18.      its value (which must be an integer) is added to the value of variable
  19.      _v_a_r_N_a_m_e;  otherwise 1 is added to _v_a_r_N_a_m_e.  The new value is stored as a
  20.      decimal string in variable _v_a_r_N_a_m_e and also returned as result.
  21.  
  22.  
  23. KKKKEEEEYYYYWWWWOOOORRRRDDDDSSSS
  24.      add, increment, variable, value
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.